package fuxi;

public class Person {
    private int age;
    public Person(){
    }
public void setAge(int age){
        if (age>=0 && age<=99) {
            this.age = age;
        }else {
            System.out.println("年龄不合法");
        }
    }
    public int getAge() {
        return age;
    }

}
